import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import './assets/iconfont/iconfont.css';
import axios from 'axios';
axios.defaults.withCredentials = true
// axios.defaults.baseURL='http://localhost:8080/';
axios.interceptors.request.use(config=>{
  console.log(config)
  config.headers['Authorization']=window.sessionStorage.getItem('token')
  return config;
})
Vue.prototype.$http = axios;

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
